package com.llxz.blog.article.util;

import lombok.Getter;
import lombok.Setter;

/**
 * Created by IntelliJ IDEA.
 *
 * @author zzh & lyq
 * @description:. date: 2021/9/7 15:28
 */

@Getter
@Setter
public class JsonResult {
    private Integer code;
    private String msg;
    private Object data;

    public JsonResult() {
        this.code = 2000;
        this.msg = "success";
    }

    public JsonResult(Object data) {
        this.data = data;
        this.code = 2000;
        this.msg = "success";
    }

    public JsonResult(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
